package com.mademoisellegeek.carrentalsimulation;

import com.mademoisellegeek.carrentalsimulation.enums.CarRentalExceptionType;

public class CarRentalException extends Exception {

    public CarRentalExceptionType type;

    public CarRentalException(String msg, CarRentalExceptionType type) {
        super(msg);
        this.type = type;
    }

    public CarRentalException(CarRentalExceptionType type) {
        this.type = type;
    }

    public CarRentalExceptionType getType() {
        return type;
    }
}
